package kr.co.redbean.events
{
	import flash.events.Event;
	import flash.events.ProgressEvent;
	
	import kr.co.redbean.store.IObjectInfo;
	
	public class ForegroundLoaderEvent extends ProgressEvent
	{
		static public const PROGRESS:String = 'progress';
		static public const SETUP:String = 'setup';
		static public const COMPLETE:String = 'complete';
		
		private var _loadProxy:IObjectInfo;
		
		public function ForegroundLoaderEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, bytesLoaded:uint=0, bytesTotal:uint=0, loadProxy:IObjectInfo=null)
		{
			super(type, bubbles, cancelable, bytesLoaded, bytesTotal);
			_loadProxy = loadProxy;
		}
		
		override public function clone():Event {
			return new ForegroundLoaderEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, loadProxy); 
		}

		public function get loadProxy():IObjectInfo
		{
			return _loadProxy;
		}


	}
}